<?php
use think\facade\Route;

/* 课程提醒 */
Route::group('system', function () {
    Route::get('course$',       '@getCourseNotify');
    Route::get('message$',      '@getSystemNotify');
})->prefix('\app\user\service\user\Notify');


Route::group('notify', function () {
    /* 互动消息（评论回复提醒） */
    Route::get('comment$',      '@getCommentNotify');
    /* 提问消息 */
    Route::get('question$',     '@getQuestionNotify');
    /* 未读消息数量 */
    Route::get('unread',     '@getUnreadNum');
})->prefix('\app\user\service\user\Notify');


Route::post('message/read', 	'@setRead')->prefix('\app\user\service\user\Notify');
